<table class="table table-hover">
    <thead>
    <tr>
        <th>SKU编码</th>
        <th>SKU名称</th>
        <th>品类</th>
        <th>国内在库</th>
        <th>国内在途</th>
        <th>国内保留</th>
        <th>FBA在库</th>
        <th>FBA在途</th>
        <th>海外仓总在库(总计)</th>
        <th>海外仓总在途(总计)</th>
        <th>海外仓总保留(总计)</th>
        <th>海外仓在库(中转)</th>
        <th>海外仓在途(中转)</th>
        <th>海外仓保留(中转)</th>
        <th>海外仓在库(移库)</th>
        <th>海外仓在途(移库)</th>
        <th>海外仓保留(移库)</th>
        <th>海外仓在库(代发)</th>
        <th>海外仓在途(代发)</th>
        <th>海外仓保留(代发)</th>
    </tr>
    <tr style="color:#f56f9c">
        <td>TTL</td>
        <td></td>
        <td></td>
        <td>{{ $totalArr['total_cn_instant'] ?? 0 }}</td>
        <td>{{ $totalArr['total_cn_transit'] ?? 0 }}</td>
        <td>{{ $totalArr['total_cn_reserve'] ?? 0 }}</td>
        <td>{{ $totalArr['total_fba_instant'] ?? 0 }}</td>
        <td>{{ $totalArr['total_fba_transit'] ?? 0 }}</td>
        <td>{{ $totalArr['total_os_instant'] ?? 0 }}</td>
        <td>{{ $totalArr['total_os_transit'] ?? 0 }}</td>
        <td>{{ $totalArr['total_os_reserve'] ?? 0 }}</td>
        <td>{{ $totalArr['total_os_box_instant'] ?? 0 }}</td>
        <td>{{ $totalArr['total_os_box_transit'] ?? 0 }}</td>
        <td>{{ $totalArr['total_os_box_reserve'] ?? 0 }}</td>
        <td>{{ $totalArr['total_os_removale_instant'] ?? 0 }}</td>
        <td>{{ $totalArr['total_os_removale_transit'] ?? 0 }}</td>
        <td>{{ $totalArr['total_os_removale_reserve'] ?? 0 }}</td>
        <td>{{ $totalArr['total_os_dropshipping_instant'] ?? 0 }}</td>
        <td>{{ $totalArr['total_os_dropshipping_transit'] ?? 0 }}</td>
        <td>{{ $totalArr['total_os_dropshipping_reserve'] ?? 0 }}</td>
    </tr>
    </thead>
    <tbody>
    @foreach($paginator as $row)
        <tr>
            <td>{{ $row->sku->psku_code ?? '' }}</td>
            <td>{{ $row->sku->psku_cn ?? '' }}</td>
            <td>{{ $row->classify->title ?? '' }}</td>
            <td>{{ $row->cn_instant ?? 0 }}</td>
            <td>{{ $row->cn_transit ?? 0 }}</td>
            <td>{{ $row->cn_reserve ?? 0 }}</td>
            <td>{{ $row->fba_instant ?? 0 }}</td>
            <td>{{ $row->fba_transit ?? 0 }}</td>
            <td>{{ $row->os_box_instant + $row->os_removale_instant + $row->os_dropshipping_instant ?? 0 }}</td>
            <td>{{ $row->os_box_transit + $row->os_removale_transit + $row->os_dropshipping_transit ?? 0 }}</td>
            <td>{{ $row->os_box_reserve + $row->os_removale_reserve + $row->os_dropshipping_reserve ?? 0 }}</td>
            <td>{{ $row->os_box_instant ?? 0 }}</td>
            <td>{{ $row->os_box_transit ?? 0 }}</td>
            <td>{{ $row->os_box_reserve ?? 0 }}</td>
            <td>{{ $row->os_removale_instant ?? 0 }}</td>
            <td>{{ $row->os_removale_transit ?? 0 }}</td>
            <td>{{ $row->os_removale_reserve ?? 0 }}</td>
            <td>{{ $row->os_dropshipping_instant ?? 0 }}</td>
            <td>{{ $row->os_dropshipping_transit ?? 0 }}</td>
            <td>{{ $row->os_dropshipping_reserve ?? 0 }}</td>
        </tr>
    @endforeach
    </tbody>
</table>
